package com.cskaoyan.order.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Chen_Feng
 * @since 2022/07/09 15:44
 */

@NoArgsConstructor
@Data
public class createBo {

    @JsonProperty("tel")
    private String tel;
    @JsonProperty("userName")
    private String userName;
    @JsonProperty("streetName")
    private String streetName;
    @JsonProperty("cartProductDtoList")
    private List<CartProductDtoListDTO> cartProductDtoList;
    @JsonProperty("addressId")
    private Integer addressId;
    @JsonProperty("orderTotal")
    private Integer orderTotal;

    @NoArgsConstructor
    @Data
    public static class CartProductDtoListDTO {
        @JsonProperty("productId")
        private Integer productId;
        @JsonProperty("salePrice")
        private Integer salePrice;
        @JsonProperty("productNum")
        private Integer productNum;
        @JsonProperty("limitNum")
        private Integer limitNum;
        @JsonProperty("checked")
        private String checked;
        @JsonProperty("productName")
        private String productName;
        @JsonProperty("productImg")
        private String productImg;
    }
}
